<?php
/**
 * 首页控制器
 */
namespace app\index\controller;
use app\index\controller\Common;
class Index extends Common{

    public function index(){

    	// 获取手机、数码分类信息
    	$gModel = new \app\index\model\Goods();
    	$phoneDigitals = $gModel->getPhoneDigitalInfo();
    	
    	//设置页面信息
    	$this->setPageMsg( '首页', '首页关键字', $desc = '首页描述', ['index','bottomnav'], ['index'] );

    	//分配变量
        $this->assign('catOpen',true);
        $this->assign('sonCats',$phoneDigitals['sonCats']);
        $this->assign('brands',$phoneDigitals['brands']);

        //展示视图
		return $this->fetch();
    }
}
